package com.system.demo.service;

import com.system.demo.entity.DTO.NoticeSearchDTO;
import com.system.demo.tool.ResponseResult;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.time.LocalDateTime;
import java.util.List;

public interface IssueNoticeService {

    ResponseResult<?> IssueNotice(String title,LocalDateTime deadLine, MultipartFile file, List<MultipartFile> files);

    ResponseResult<?> deleteNotice(List<Integer> tableIds);
    void DownloadAttachment(Integer tableId,HttpServletResponse response);

    ResponseResult<?> SumbitApplication(MultipartFile file, Integer noticeId);


    void ExportAttachment(HttpServletResponse response, List<Integer> noticeId);

    ResponseResult<?> GetNotice(Integer current,Integer size);

    ResponseResult<?> GetAttachments(Integer tableId);

    ResponseResult<?> SearchApplication(NoticeSearchDTO noticeSearchDTO, Integer current, Integer size);

    ResponseResult<?> GetApplicationAttachment(Integer applicationId);

    ResponseResult<?> Determine(Integer applicationId, String isPass, String reason, MultipartFile reasonImg);

    ResponseResult<?> GetSelfApplication(Integer current, Integer size, NoticeSearchDTO noticeSearchDTO);
}
